EC_ReadAxisInfo

Function block EC_ReadAxisInfo
Reads an axis' state through Service Data Object (SDO).
VAR_IN_OUT
V AxisIn AXIS_REF Reference to an axis.
VAR_INPUT
V Enable BOOL Gets the value of the parameter continuously while enabled.
VAR_OUTPUT
V Valid BOOL TRUE if a valid set of outputs is available.
V Error BOOL Signals that an error has occurred within the function block.
V ErrorID MC_Error Error identification.
V VendorId UDINT Vendor ID of the device.
V ProductCode UDINT Product code of the device.
V RevisionNumber UDINT Revision number of the device.
V SerialNumber UDINT Serial number of the device.
V SlaveId UINT The index of a slave array used for SDO functions. When EtherCAT is started, this index has the same value as the SlaveId, which corresponds to the position of the slave in the network. Please note that after EtherCAT is started in the Operational (Op) state, any addition or removal of slaves from the network will change the position of the slaves in the network (SlaveId). Nevertheless, the index of the slave will remain the same. Newly added devices will be added in the back of the slave array. For all slaves after the change, the index and SlaveId will no longer match. This behavior is only available for physical devices; simulated devices are inapplicable. Please refer to the use cases in EnableHotConnect for more details.
V PhysAddress UINT Physical address of the device.
V AliasAddress UINT Alias address of the device.
V State EC_State EtherCAT state of the device.
V CycleTime UDINT Cycle time for a slave. If the slaves on the KINGSTAR Fieldbus network can't catch up the cycle time of the master, KINGSTAR auto-configuration will slow down their cycle time based on their capabilities.
V Resolution UDINT Encoder resolution set in the device, if it is a drive.
V Name STRING Name of the device.

 

  EC_ReadAxisInfo  
AXIS_REF   AxisIn   Axis   AXIS_REF
BOOL   Enable   Valid   BOOL
        Error   BOOL
        ErrorID   MC_Error
        VendorId   UDINT
        ProductCode   UDINT
        RevisionNumber   UDINT
        SerialNumber   UDINT
        SlaveId   UINT
        PhysAddress   UINT
        AliasAddress   UINT
        State   EC_State
        CycleTime   UDINT
        Resolution   UDINT
        Name   STRING